package com.example.springboot01.propost;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-04-30 17:08:01
 */
@Configuration
@ComponentScan("com.example.springboot01.propost")
public class PrePostConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    public BeanWayService beanWayService() {
        return new BeanWayService();
    }

    @Bean
    public Jsr250WayService jsr250WayService() {
        return new Jsr250WayService();
    }
}
